import request from '@/utils/request'

export default{
    
    findAll(current,limit,disburse){
        return request({
            url: `/accounts/disburse/findAll/${current}/${limit}`,
            method: 'post',
            data: disburse
        })
    },
    getArea(){
        return request({
            url: `/accounts/area/area`,
            method: 'get'
        })
    },
    saveDisburse(from){
        return request({
            url: '/accounts/disburse/save',
            method: 'post',
            data: from
        })
    },
    removeById(id){
        return request({
            url: `/accounts/disburse/removeById/${id}`,
            method: 'delete'
        })
    },
    updateById(disburse){
        return request({
            url: `/accounts/disburse/updateById`,
            method: 'put',
            data: disburse
        })
    },
    getMoneySum(disburse){
        return request({
            url: '/accounts/disburse/getMoneySum',
            method: 'post',
            data: disburse
        })
    }
}
